package org.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.entity.DTO.RecordDto;
import org.example.entity.VisitorRecords;

import org.example.mapper.VisitorRecordsMapper;
import org.example.service.VisitorRecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 12845
* @description 针对表【visitor_records】的数据库操作Service实现
* @createDate 2024-01-10 15:35:51
*/
@Service
public class VisitorRecordsServiceImpl extends ServiceImpl<VisitorRecordsMapper, VisitorRecords>
    implements VisitorRecordsService {
    @Autowired
    private VisitorRecordsMapper mapper;

    @Override
    public List<RecordDto> getRecords() {
        return mapper.getRecord();
    }
}




